Fix RCS0036 for blank lines in records - #1813
Merged
Merged
Conversation
RCS0036 already visited classes, structs, and record structs, but never registered RecordDeclaration, so equivalent properties in a record were ignored. Co-authored-by: Cursor <cursoragent@cursor.com>
A markdown issue link alone does not create a GitHub closing reference. Co-authored-by: Cursor <cursoragent@cursor.com>
Changelog entries use ([PR](...)) links; tighten the bug-fix skill examples to match. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Aug 16, 2026
Closed
This was referenced Aug 24, 2026
Open
Open
Open
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
recorddeclarations, so blank lines between consecutive single-line properties (and other same-kind members) are reported the same way as in classes.BlankLineBetweenDeclarationsAnalyzerregistration also covers RCS0009, RCS0010, RCS0012, and RCS0013 inside records.Fixes #1812
Test plan
dotnet test Tests/Formatting.Analyzers.Tests --filter "FullyQualifiedName~RCS0036"(8 passed)recordwith two single-line properties separated by a blank line) reports RCS0036 and the code fix removes the blank line